import cacheFunc from '@/utils/cache.js'
export function logOut(title = '请从新登陆') {
	console.log('====')
	cacheFunc.removeCache('token')
	cacheFunc.removeCache('user')
	uni.showToast({
		title: title,
		icon: 'none'
	})
	// code-10400 用户未登录
	setTimeout(() => {
		uni.redirectTo({
			url: '/pages/login/login'
		})
	}, 1000)
}
